<script type="text/javascript">
	$(function(){
		//保存修改
		$("#educationInfo_form").submit(function(){
			jQuery.post("/Wyn/user_detail/education_info_save",$(this).serialize(),
			function(data){
				$("#educationInfo").replaceWith(data);
			});
			return false;
		});
		//取消
		$("#educationInfoCancel").click(function(){
			jQuery.get("/Wyn/user_detail/education_info_cancel",
			function(data){
				$("#educationInfo").replaceWith(data);
			});
		});
		$("#educationInfo_display").toggle(
			function(){
				$("#educationInfo_form").hide();
			},
			function(){
				$("#educationInfo_form").show();
			});
	});
</script>
<div class="info-section clearfix" id="educationInfo">
	<div class="details panel opened" id="educationInfo_detail">
		<h3 id="educationInfo_display" class="legend">学校信息</h3>
		<div id="educationInfo_message" class="errors_div ajax_msgerror"
			style="display: none;"></div>
		<div id="educationInfo_loading" class="profileLoading"
			style="display: none;">
			<span>学校信息读取中...</span>
		</div>
		<form class="panel" action="/MyEducationInfo.do" method="post"
			name="myEducationForm" id="educationInfo_form">

			<p>
				<label><span>大学:</span> </label> <input type="text"
					name="ud.university" value="${ud.university}" class="input-text">
				<label><span>院系:</span></label> <input type="text"
					name="ud.universityDepartment" value="${ud.universityDepartment}"
					class="input-text">
				<label><span>入学年份:</span></label> <input type="text"
					name="ud.universityYear" value="${ud.universityYear}"
					class="input-text">年
			</p>
			<p>
				<label><span>高中:</span> </label> <input type="text"
					name="ud.highSchool" value="${ud.highSchool}" class="input-text">
				<label><span>入学年份:</span></label> <input type="text"
					name="ud.highSchoolYear" value="${ud.highSchoolYear}"
					class="input-text">年
			</p>
			<p>
				<label><span>初中:</span> </label> <input type="text"
					name="ud.juniorSchool" value="${ud.juniorSchool}" class="input-text">
				<label><span>入学年份:</span></label> <input type="text"
					name="ud.juniorSchoolYear" value="${ud.juniorSchoolYear}"
					class="input-text">年
			</p>
			<p>
				<label><span>小学:</span> </label> <input type="text"
					name="ud.primarySchool" value="${ud.primarySchool}" class="input-text">
				<label><span>入学年份:</span></label> <input type="text"
					name="ud.primarySchoolYear" value="${ud.primarySchoolYear}"
					class="input-text">年
			</p>
			<p>
				<label class="empty" for=""><span>确认: </span> </label> <input
					type="submit" id="educationInfoSubmit" value="保存修改" tabindex="7"
					class="input-submit" name="submit"> <input type="button"
					id="educationInfoCancel" class="input-submit gray" value="取消"
					tabindex="8">
			</p>
		</form>
	</div>
</div>